package state;

public class Client {
    public static void main(String[] args) {
        Context context = new Context();

        State startState = new StartState();
        startState.doAction(context);
        System.out.println("当前状态：" + context.getState().toString());

        State stopState = new StopState();
        stopState.doAction(context);
        System.out.println("当前状态：" + context.getState().toString());

    }
}
